package com.zqweb.gulimall.essearch.feign;

import com.zqweb.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("guli-mall-product")
public interface ProductFeignService {

    @GetMapping("/product/attr/info/{attrId}")
    // 根据指定attrId，获取相应的attr信息
    R attrInfo(@PathVariable("attrId") Long attrId);

    @GetMapping("/product/brand/info/brandIds")
    R brandIdsInfo(@RequestParam List<Long> brandIds);

}
